package studiodiva.portfolio.client.model.titles;

import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.TextResource;

import studiodiva.portfolio.client.model.HasApplication;

import studiodiva.portfolio.client.lib.lang.Base;

public class Page extends Base {

  private final String id;
  private final ImageResource image;
  private final TextResource text;
  private final String title;

  public Page(HasApplication parent, String id, String title, ImageResource image, TextResource text) {
    this.id = id;
    this.title = title;
    this.text = text;
    initialize(parent);
    this.image = image;
  }

  public String getId() {
    return id;
  }

  public ImageResource getImage() {
    return image;
  }

  public String getText() {
    return text.getText();
  }

  public String getTitle() {
    return title;
  }
}
